package com.dao;

import java.util.List;

import com.model.Product;

public interface ProductDAO {
	// add product
	public boolean addProduct(Product product);

	// delete product
	public boolean deleteProduct(int id);

	// update product
	public boolean updateProduct(Product product, int id);

	// select product
	public List<?> selectProduct(String key, String type, int page, int rows,
			String sort, String order);

	public <T> Product getProduct(T o);

	public int getTotal();

	public int getLikeTotal(String key, String type);

}
